import 'package:basic_common/app_theme.dart';
import 'package:basic_common/common_exports.dart';
import 'package:basic_widgets/app_bar_widget.dart';
import 'package:basic_widgets/text_widget.dart';
import 'package:flutter/services.dart';
import 'reviewpro_controller.dart';

/// 资料审核进度
class ReviewProPage extends GetView<ReviewProController> {
  const ReviewProPage({super.key});

  @override
  Widget build(BuildContext context) {
    return WillPopScope(
      onWillPop: () async {
        SystemNavigator.pop();
        return false;
      },
      child: Scaffold(
        appBar: backAppbar(title: "审核进度"),
        backgroundColor: Colors.white,
        body: Obx(() => Column(crossAxisAlignment: CrossAxisAlignment.center, children: [
          Container(
              margin: EdgeInsets.only(top: ScreenHelper.height(15)),
              alignment: Alignment.topCenter,
              child: textAndSub(
                  title: controller.statusStr.value,
                  subTitle: controller.subTitle.value,
                  subTextColor: AppTheme.seconddarkWeakTextColor,
                  titleFontSize: 21,
                )),
          // Container(child: _buildStep())
        ])),
      ),
    );
  }

  // Widget _buildStep() {
  //   return Stepper(
  //       controlsBuilder: (context, details) {
  //         return SizedBox.shrink();
  //       },
  //       stepIconBuilder: (stepIndex, stepState) {
  //         return Container(
  //           width: ScreenHelper.width(10),
  //           height: ScreenHelper.width(10),
  //           //超出部分，可裁剪
  //           clipBehavior: Clip.antiAlias,
  //           decoration: BoxDecoration(
  //               color: AppTheme.dartTextColor,
  //               borderRadius: BorderRadius.circular(50)),
  //         );
  //       },
  //       currentStep: controller.currentStep,
  //       steps: controller.titles
  //           .map<Step>((item) => Step(
  //               title: Text(
  //                 item["title"],
  //                 textAlign: TextAlign.left,
  //               ),
  //               state: StepState.indexed,
  //               subtitle: Container(
  //                 width: ScreenHelper.width(60),
  //                 height: ScreenHelper.height(17),
  //                 padding: EdgeInsets.only(right: 4),
  //                 decoration: BoxDecoration(
  //                     color: item['state'] == '0'
  //                         ? AppTheme.primyColor.withOpacity(.4)
  //                         : AppTheme.tipTextColor.withOpacity(.3),
  //                     borderRadius: BorderRadius.circular(50)),
  //                 child: Row(
  //                   children: [
  //                     Image.asset(item['state'] == '0'
  //                         ? "assets/register/icon_complete.png"
  //                         : "assets/register/icon_review.png"),
  //                     Text(
  //                       item["status"],
  //                       textAlign: TextAlign.center,
  //                       style: TextStyle(
  //                           color: item['state'] == '0'
  //                               ? AppTheme.primyColor
  //                               : AppTheme.tipTextColor),
  //                     )
  //                   ],
  //                 ),
  //               ),
  //               content: Align(
  //                   alignment: Alignment.centerLeft,
  //                   child: const SizedBox.shrink())))
  //           .toList());
  // }
}
